<fieldset>
<div>
  <%= label :teacher, :sid, "教师编号" %>
  <%= text_field :teacher, :sid %>
</div>
<div>
  <%= label :teacher, :name, "姓名" %>
  <%= text_field :teacher, :name %>
</div>
<div>
  <%= label :teacher, :sex, "性别" %>
  <%= select :teacher, :sex, {"女" => 'f', '男' => 'm'} %>
</div>
<div>
  <%= label :teacher, :birthday, '出生日期' %>
  <%= text_field :teacher, :birthday %> 
</div>
<div>
  <%= label :teacher, :school,  '毕业学校' %>
  <%= text_field :teacher, :school %>
</div>
<div>
  <%= label :teacher, :specialty, '专业' %>
  <%= text_field :teacher, :specialty %>
</div>
<div>
  <%= label :teacher, :level, '专业程度' %>
  <%= text_field :teacher, :level %>
</div>
<div>
  <%= label :teacher, :enrolldate, '注册日期' %>
  <%= text_field :teacher, :enrolldate %>
</div>
<div>
  <%= label :teacher, :base, "底薪" %>
  <%= text_field :teacher, :base %>
</div>
</fieldset>
<fieldset>
  <div>
    <%= label :teacher, :experience, '工作经验' %>
    <br/>
    <%= text_area :teacher, :experience,:cols=>50,:rows=>5 %>
  </div>
</fieldset>
<fieldset>
  <div>
    <%= label :teacher, :email, 'Email' %>
    <%= text_field :teacher, :email %>
  </div>
  <div>
    <%= label :teacher, :phone, '电话' %>
    <%= text_field :teacher, :phone %>
  </div>
  <div>
    <%= label :teacher, :mobile, '移动电话' %>
    <%= text_field :teacher, :mobile %>
  </div>
  <div>
    <%= label :teacher, :im, '即时通讯(QQ,MSN)' %>
    <%= text_field :teacher, :im %>
  </div>
</fieldset>
<script type="text/javascript">
  $(function(){
      $("#teacher_birthday").datebox();
      $("#teacher_enrolldate").datebox();
  });
</script>
